{literal}
<style type="text/css">
	.table_right{
		
	}
	.table_left{
		
	}
</style>
{/literal}

<form method="post" id="form_submit_community" onsubmit="$(this).ajaxCall('pages.addCommunity');return false;" name="form_submit_community" action="#">
	<input type="hidden" value="{$is_group}" name="val[is_group]"/>

<div class="table">
	<div class="table_left">
		Community's name
	</div>
	<div class="table_right">
		<input type="text" name="val[title]" id="title"/>
	</div>
</div>

	{if $is_group==0}
<div class="table">
	<div class="table_left">
		Sector
	</div>
	<div class="table_right">
		<select name="val[category_id]">
							<option value="">Select a sector</option>
							<option value="1">Album</option>
							<option value="2">Amateur Sports Team</option>
							<option value="3">Book</option>
							<option value="4">Book Store</option>
							<option value="5">Concert Tour</option>
							<option value="6">Concert Venue</option>
							<option value="7">Fictional Character</option>
							<option value="8">Library</option>
							<option value="9">Magazine</option>
							<option value="10">Movie</option>
							<option value="11">Movie Theater</option>
							<option value="12">Music Award</option>
							<option value="13">Music Chart</option>
							<option value="14">Music Video</option>
							<option value="15">Musical Instrument</option>
							<option value="16">Playlist</option>
							<option value="17">Professional Sports Team</option>
							<option value="18">Radio Station</option>
							<option value="19">Record Label</option>
							<option value="20">School Sports Team</option>
							<option value="21">Song</option>
							<option value="22">Sports League</option>
							<option value="23">Sports Venue</option>
							<option value="24">Studio</option>
							<option value="25">TV Channel</option>
							<option value="26">TV Network</option>
							<option value="27">TV Show</option>
							<option value="28">TV/Movie Award</option>
						</select>
	</div>
</div>
{/if}

<div class="table">
	<div class="table_left">
		{if $is_group==1}
			Invite friends join group
		{else}
			Invite friends
		{/if}
	</div>
	<div class="table_right">
		{module name='pages.share' type='feed' url=''}
	</div>
</div>


			
<div class="table">
	<div class="table_right">
			{if $is_group==0}
		<input type="submit" class="button" value="Create Community"/>
		{else}
		<input type="submit" class="button" value="Create Group"/>
		{/if}
		<input type="button" class="button" onclick="tb_remove();" value="Cancel"/>
	</div>
</div>
</form>

<script type="text/javascript">$Core.loadStaticFile('{jscript file='switch_legend.js'}');</script>
<script type="text/javascript">$Core.loadStaticFile('{jscript file='switch_menu.js'}');</script>
<script type="text/javascript">$Core.loadInit();</script>